import { http } from '@/utils/request'

const venueRouteURL = '/api/venue'

export function apiFindVenue(params) {
    return http.get(venueRouteURL+`/${params}`)
}

export function apiCreateVenue(data) {
    return http.post(venueRouteURL, data )
}

export function apiUpdateVenue(data) {
    return http.put(venueRouteURL, data)
}

export function apiDeleteVenue(params) {
    return http.delete(venueRouteURL+`/${params}`)
}

export const apiGetVenueInfoById = (id)=>{
    return http.get(venueRouteURL+`?venueId=${id}`)
  }
  
